// import Vue from 'vue'
import http from '../uitls/http'
let api = {};
//登录
api.partnerLogin = function(data){
  return http.post('/api/admin/base/loginbypw',data)
  // return http.post('/api/admin/base/login',data)
}
// 商家店铺详情
api.shopStoreDetail = function(data){
    return http.post('/api/admin/shop/store/detail',data)
}
//商家修改店铺
api.storeSave = function(data){
    return http.post('/api/admin/shop/store/save',data)
}
// 获取顶级分类
api.shopCateOne = function(){
      return http.post('/api/admin/shop/cate/cateOne')
  }
//设计师个人中心
api.designerView = function(data){
    return http.post('/api/admin/designer/designer/view',data)
}
//省份列表
api.Region_getProvinceList = function(data){
  return http.post('/api/admin/base/Region/getProvinceList',data)
}
//城市列表
api.Region_getCityList = function(data){
  return http.post('/api/admin/base/Region/getCityList',data)
}
//小区匹配
api.DesignCase_estateMatch = function(data){
  return http.post('/api/admin/designer/DesignCase/estateMatch',data)
}
//设计师案例列表
api.DesignCase_index = function(data){
  return http.post('/api/admin/designer/DesignCase/index',data)
}
//设计师案例列表详情
api.DesignCase_view = function(data){
  return http.post('/api/admin/designer/DesignCase/view',data)
}
//设计师案例删除
api.DesignCase_del = function(data){
  return http.post('/api/admin/designer/DesignCase/del',data)
}
//设计师案例商品匹配
api.DesignCase_productMatch = function(data){
  return http.post('/api/admin/designer/DesignCase/productMatch',data)
}
//设计师案例户型匹配
api.DesignCase_houseMatch = function(data){
  return http.post('/api/admin/designer/DesignCase/houseMatch',data)
}
//设计师案例新增
api.DesignCase_add = function(data){
  return http.post('/api/admin/designer/DesignCase/add',data)
}
// 设计师案例编辑
api.DesignCase_edit = function(data){
  return http.post('/api/admin/designer/DesignCase/edit',data)
}
//设计师点赞列表
api.CaseSupport_index = function(data){
  return http.post('/api/admin/designer/CaseSupport/index',data)
}
//设计师转发列表
api.CaseForward_index = function(data){
  return http.post('/api/admin/designer/CaseForward/index',data)
}
//设计师订单列表
api.DesignerOrder_index = function(data){
  return http.post('/api/admin/designer/DesignerOrder/index',data)
}
//设计师评论列表
api.CaseComment_index = function(data){
  return http.post('/api/admin/designer/CaseComment/index',data)
}
//设计师评论回复
api.CaseComment_reply= function(data){
  return http.post('/api/admin/designer/CaseComment/reply',data)
}
//设计师评论删除
api.CaseComment_del= function(data){
  return http.post('/api/admin/designer/CaseComment/del',data)
}
//设计师订单详情
api.DesignerOrder_view = function(data){
  return http.post('/api/admin/designer/DesignerOrder/view',data)
}
//设计师订单接单
api.DesignerOrder_accept = function(data){
  return http.post('/api/admin/designer/DesignerOrder/accept',data)
}
//设计师头像上传
api.uploadfile = function(data){
  return http.post('/api/admin/base/uploadfile',data)
}
//设计师申请更改
api.applyChange = function(data){
  return http.post('/api/admin/designer/designer/applyChange',data)
}
//施工队个人中心
api.builderTeam = function(data){
    return http.post('/api/admin/builder/BuilderTeam/view',data)
}
//获取品牌
api.getBrands = function(data){
  // /admin/shop/brand/select
  return http.get('/api/admin/shop/BrandStoreRel/index',data)
},
//获取设计师商品详情
api.productDetail = function(data){
  return http.post('/api/admin/designer/Product/detail',data)
}
//获取商家商品详情
api.shopDetail = function(data){
  return http.post('/api/admin/shop/product/detail',data)
}
//富文本上传图片
api.uploadfile = function(data){
  return http.post('/api/client/base/uploadfile',data)
}
//获取多级分类
api.cateLst = function(data){
  return http.get('/api/admin/shop/Cate/cateLst',data)
}
// 调分类数据
api.freight = function(data){
  return http.post('/api/admin/shop/freight/lst',data)
}
//获取设计师商品数据
api.designerProduct = function(data){
  return http.post('/api/admin/designer/Product/lst',data)
}
//获取施工队商品数据
api.builderProduct = function(data){
  return http.post('/api/admin/builder/Product/lst',data)
}

//全部订单
api.productOrderlst = function(data){
  return http.post('/api/admin/shop/productOrder/lst',data)
}

//获取权限
api.getPermissions = function(data){
  return http.post('/api/admin/base/getPermissions',data)
}
//商家店铺
api.shopApplyChange = function(data){
  return http.post('/api/admin/shop/store/applyChange',data)
}
//酷家乐设计列表
api.kjlDesignList = function(data){
  return http.post('/api/admin/designer/KuJiaLe/index',data)
}
//酷家乐编辑设计
api.kjlDesignEdit = function(data){
  return http.post('/api/admin/designer/KuJiaLe/planEdit',data)
}
//酷家乐编辑设计
api.kjlDesignNew = function(data){
  return http.post('/api/admin/designer/KuJiaLe/add',data)
}
//酷家乐渲染图列表
api.kjlCoverList = function(data){
  return http.post('/api/admin/designer/KuJiaLe/PicList',data)
}
//酷家乐编辑设计
api.kjlSetCover = function(data){
  return http.post('/api/admin/designer/KuJiaLe/setCover',data)
}

// 分销中心
// 获取精英列表
api.getMarkeList = function(data){
  return http.post('/api/admin/promoter/Index/promoterList',data)
}
// 移除创业精英
api.removeMaker = function(data){
  return http.post('/api/admin/promoter/Index/relieve',data)
}
// 待审核精英列表
api.makerExamineList = function(data){
  return http.post('/api/admin/promoter/Index/applyList',data)
}
// 审批精英操作
api.toOperMaker = function(data){
  return http.post('/api/admin/promoter/Index/approval',data)
}
// 创客订单
api.makerOrder = function(data){
  return http.post('/api/admin/promoter/Index/orderList',data)
}
// 佣金比率修改
api.ratioPrice = function(data){
  return http.post('/api/admin/promoter/Index/changeDividend',data)
}
// 佣金比率查看
api.viewDividend = function(data){
  return http.post('/api/admin/promoter/Index/dividend',data)
}
// 佣金比率修改历史列表
api.ratioHistory = function(data){
  return http.post('/api/admin/promoter/Index/dividendHistory',data)
}
// 导购订单列表
api.guideList = function(data){
  return http.post('/api/admin/guide/Index/orderList',data)
}

// 我的账户
// 银行卡列表
api.bankCardList = function(data){
  return http.post('/api/admin/Bank/binded',data)
}
// 银行列表
api.searchBKList = function(data){
  return http.post('/api/admin/Bank/searchBKList',data)
}
// 绑定银行卡
api.bindList = function(data){
  return http.post('/api/admin/Bank/bind',data)
}
// 已绑定银行卡列表
api.bindedInfo = function(data){
  return http.post('/api/admin/Bank/binded',data)
}
// 余额信息
api.balanceInfo = function(data){
  return http.post('/api/admin/Wallet/info',data)
}
//删除银行卡
api.delCard = function(data){
  return http.post('/api/admin/Bank/unbind',data)
}
// 获取提现记录
api.getRecordsList = function(data){
  return http.post('/api/admin/Wallet/CashOutList',data)
}
// 提现申请
api.recordsApply = function(data){
  return http.post('/api/admin/Wallet/CashOut',data)
}

// 获取卖场
api.businessList = function(data){
  return http.post('/api/admin/market/Market/marketList',data)
}




export default api